package edu.njust.service;

import edu.njust.dao.UserMapper;
import edu.njust.pojo.Course;
import edu.njust.pojo.Message;
import edu.njust.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public class UserServiceImpl implements UserService{
    private UserMapper userMapper;

    public UserMapper getUserMapper(){
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User getUserById(String id) {
        return userMapper.getUserById(id);
    }

    @Override
    public List<User> getUserByName(String name, Integer type){
        return  userMapper.getUserByNameAndType(name,type);
    }




}
